package com.hsnn.medstgmini.base.std.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.hsnn.medstgmini.util.DateUtil;

/**
 * @category 医疗机构库详情
 * @author CCL
 */
@Entity
@Table(name = "std_hospinfo_detail_log")
public class HospInfoDetailLog implements Serializable {

	private static final long serialVersionUID = 1L;

	@Column(name = "hosp_id")
	private String hospId;

	@Column(name = "bed_num")
	private Integer bedNum;

	@Column(name = "incom_pat_num")
	private BigDecimal incomPatNum;

	@Column(name = "staff_num")
	private Integer staffNum;

	@Column(name = "reg_cap")
	private BigDecimal regCap;

	@Column(name = "profile")
	private String profile;

	@Column(name = "legal_rep_name")
	private String legalRepName;

	@Column(name = "legal_rep_idnum")
	private String legalRepIdnum;

	@Column(name = "legal_rep_telephone")
	private String legalRepTelephone;

	@Column(name = "legal_rep_handphone")
	private String legalRepHandphone;

	@Column(name = "contact_name")
	private String contactName;

	@Column(name = "contact_idnum")
	private String contactIdnum;

	@Column(name = "contact_pos")
	private String contactPos;

	@Column(name = "contact_telephone")
	private String contactTelephone;

	@Column(name = "contact_handphone")
	private String contactHandphone;

	@Column(name = "contact_email")
	private String contactEmail;

	@Column(name = "contact_qq")
	private String contactQQ;

	@Column(name = "hosp_lice_no")
	private String hospLiceNo;

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@Column(name = "hosp_lice_start_date")
	private Date hospLiceStartDate;

	@Transient
	private String hospLiceStartDateStr;

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@Column(name = "hosp_lice_end_date")
	private Date hospLiceEndDate;

	@Transient
	private String hospLiceEndDateStr;

	@Column(name = "enter_lice_no")
	private String enterLiceNo;

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@Column(name = "enter_lice_start_date")
	private Date enterLiceStartDate;

	@Transient
	private String enterLiceStartDateStr;

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@Column(name = "enter_lice_end_date")
	private Date enterLiceEndDate;

	@Transient
	private String enterLiceEndDateStr;

	@Column(name = "upd_datetime")
	private Date updDatetime;

	@Column(name = "upd_user")
	private String updUser;

	@Id
	@OneToOne
	@JoinColumn(name = "log_id", referencedColumnName = "log_id")
	@JsonBackReference
	private HospInfoLog hospInfoLog;

	public Integer getBedNum() {
		return bedNum;
	}

	public void setBedNum(Integer bedNum) {
		this.bedNum = bedNum;
	}

	public BigDecimal getIncomPatNum() {
		return incomPatNum;
	}

	public void setIncomPatNum(BigDecimal incomPatNum) {
		this.incomPatNum = incomPatNum;
	}

	public Integer getStaffNum() {
		return staffNum;
	}

	public void setStaffNum(Integer staffNum) {
		this.staffNum = staffNum;
	}

	public BigDecimal getRegCap() {
		return regCap;
	}

	public void setRegCap(BigDecimal regCap) {
		this.regCap = regCap;
	}

	public String getProfile() {
		return profile;
	}

	public void setProfile(String profile) {
		this.profile = profile;
	}

	public String getLegalRepName() {
		return legalRepName;
	}

	public void setLegalRepName(String legalRepName) {
		this.legalRepName = legalRepName;
	}

	public String getLegalRepIdnum() {
		return legalRepIdnum;
	}

	public void setLegalRepIdnum(String legalRepIdnum) {
		this.legalRepIdnum = legalRepIdnum;
	}

	public String getLegalRepTelephone() {
		return legalRepTelephone;
	}

	public void setLegalRepTelephone(String legalRepTelephone) {
		this.legalRepTelephone = legalRepTelephone;
	}

	public String getLegalRepHandphone() {
		return legalRepHandphone;
	}

	public void setLegalRepHandphone(String legalRepHandphone) {
		this.legalRepHandphone = legalRepHandphone;
	}

	public String getContactName() {
		return contactName;
	}

	public void setContactName(String contactName) {
		this.contactName = contactName;
	}

	public String getContactIdnum() {
		return contactIdnum;
	}

	public void setContactIdnum(String contactIdnum) {
		this.contactIdnum = contactIdnum;
	}

	public String getContactPos() {
		return contactPos;
	}

	public void setContactPos(String contactPos) {
		this.contactPos = contactPos;
	}

	public String getContactTelephone() {
		return contactTelephone;
	}

	public void setContactTelephone(String contactTelephone) {
		this.contactTelephone = contactTelephone;
	}

	public String getContactHandphone() {
		return contactHandphone;
	}

	public void setContactHandphone(String contactHandphone) {
		this.contactHandphone = contactHandphone;
	}

	public String getContactEmail() {
		return contactEmail;
	}

	public void setContactEmail(String contactEmail) {
		this.contactEmail = contactEmail;
	}

	public String getContactQQ() {
		return contactQQ;
	}

	public void setContactQQ(String contactQQ) {
		this.contactQQ = contactQQ;
	}

	public String getHospLiceNo() {
		return hospLiceNo;
	}

	public void setHospLiceNo(String hospLiceNo) {
		this.hospLiceNo = hospLiceNo;
	}

	public Date getHospLiceStartDate() {
		return hospLiceStartDate;
	}

	public void setHospLiceStartDate(Date hospLiceStartDate) {
		this.hospLiceStartDate = hospLiceStartDate;
	}

	public Date getHospLiceEndDate() {
		return hospLiceEndDate;
	}

	public void setHospLiceEndDate(Date hospLiceEndDate) {
		this.hospLiceEndDate = hospLiceEndDate;
	}

	public String getEnterLiceNo() {
		return enterLiceNo;
	}

	public void setEnterLiceNo(String enterLiceNo) {
		this.enterLiceNo = enterLiceNo;
	}

	public Date getEnterLiceStartDate() {
		return enterLiceStartDate;
	}

	public void setEnterLiceStartDate(Date enterLiceStartDate) {
		this.enterLiceStartDate = enterLiceStartDate;
	}

	public Date getEnterLiceEndDate() {
		return enterLiceEndDate;
	}

	public void setEnterLiceEndDate(Date enterLiceEndDate) {
		this.enterLiceEndDate = enterLiceEndDate;
	}

	public Date getUpdDatetime() {
		return updDatetime;
	}

	public void setUpdDatetime(Date updDatetime) {
		this.updDatetime = updDatetime;
	}

	public String getUpdUser() {
		return updUser;
	}

	public void setUpdUser(String updUser) {
		this.updUser = updUser;
	}

	public HospInfoLog getHospInfoLog() {
		return hospInfoLog;
	}

	public void setHospInfoLog(HospInfoLog hospInfoLog) {
		this.hospInfoLog = hospInfoLog;
	}

	public String getHospId() {
		return hospId;
	}

	public void setHospId(String hospId) {
		this.hospId = hospId;
	}

	public String getHospLiceStartDateStr() {
		if (hospLiceStartDate != null) {
			hospLiceStartDateStr = DateUtil.dateTime(hospLiceStartDate);
		}
		return hospLiceStartDateStr;
	}

	public void setHospLiceStartDateStr(String hospLiceStartDateStr) {
		this.hospLiceStartDateStr = hospLiceStartDateStr;
	}

	public String getHospLiceEndDateStr() {
		if (hospLiceEndDate != null) {
			hospLiceEndDateStr = DateUtil.dateTime(hospLiceEndDate);
		}
		return hospLiceEndDateStr;
	}

	public void setHospLiceEndDateStr(String hospLiceEndDateStr) {
		this.hospLiceEndDateStr = hospLiceEndDateStr;
	}

	public String getEnterLiceStartDateStr() {
		if (enterLiceStartDate != null) {
			enterLiceStartDateStr = DateUtil.dateTime(enterLiceStartDate);
		}
		return enterLiceStartDateStr;
	}

	public void setEnterLiceStartDateStr(String enterLiceStartDateStr) {
		this.enterLiceStartDateStr = enterLiceStartDateStr;
	}

	public String getEnterLiceEndDateStr() {
		if (enterLiceEndDate != null) {
			enterLiceEndDateStr = DateUtil.dateTime(enterLiceEndDate);
		}
		return enterLiceEndDateStr;
	}

	public void setEnterLiceEndDateStr(String enterLiceEndDateStr) {
		this.enterLiceEndDateStr = enterLiceEndDateStr;
	}

}
